﻿<?php
use yii\helpers\Html;
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use common\components\helpers\Fun;

LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <div id="search-area" class="yx-bgf7f7f7 yx-radius5 zx-mg yx-function2 yx-pr0">
        <?= Html::beginForm(Fun::url(['adminssionaccount/index']), 'get', ['enctype' => 'multipart/form-data']) ?>
        <?= \common\components\helpers\Search::dropDownList('mechanic_id', null, array_merge([null => '请选择'], $listData), ['label' => '机构', 'promote' => '请选择机构', 'class' => 'search diy_select_txt']) ?>
        <?= \common\components\helpers\Search::dropDownList('month', null, array_merge([null => '请选择'], $months), ['label' => '月份', 'promote' => '请选择..', 'class' => 'search diy_select_txt']) ?>
        <?= \common\components\helpers\Search::dropDownList('state', null, [null => '请选择', 0 => '未付款', 1 => '已付款'], ['label' => '状态', 'promote' => '请选择..', 'class' => 'search diy_select_txt']) ?>
        <?= \common\components\helpers\Search::submitButton('搜索', ['id' => 'search-handle', 'class' => "yx-search yx-radius2"]); ?>
        <?php Html::endForm() ?>
    </div>
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table5 table-striped with-check">
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?= \Yii::t('zhtfrontend', 'ID'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '机构名称'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '结算总金额'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '结算时间'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '对应月份'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '付款状态'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '操作'); ?></th>
            </tr>
            </thead>
            <?php if ($data): ?>
                <?php foreach ($data as $item): ?>
                    <tr data-id="<?= $item['id'] ?>">
                        <td><?= $item['id'] ?></td>
                        <td><?= $item['mechanic_name'] ?></td>
                        <td><?= $item['price'] ?></td>
                        <td><?= $item['created_at'] ?></td>
                        <td><?= $item['month'] ?></td>
                        <td><?= $item['status'] ?></td>
                        <td><?= $item['operate_admission'] ?></td>
                    </tr>
                <?php endforeach; ?>
            <?php endif; ?>
        </table>
        <div style="text-align: right"><?= common\components\widgets\GoPager::widget(['pagination' => $pages]) ?></div>
    </div>
</div>






